<template>
	<div class="SocketRequestDemo">
		<el-button @click="get1">获取数据</el-button>
	</div>
</template>

<script>
	import {$sget} from '@/plugin/socketRequest.js'
	export default{
		name:'SocketRequestDemo',
		methods:{
			get1(){
				$sget('/getList').then(res=>{
					console.log(res)
				})
			}
		}
	}
</script>

<style>
</style>